const intents = [
  'Music.PlayMusicIntent'
]

const state = {
  intents,
  intent: intents[0]
}

const getters = {
  intentGrammar: state => {
    return `eps : "[${state.intent}]"`
  }
}

const mutations = {
  addIntent (state, intent) {
    state.intents.push(intent)
  },
  removeIntent (state, intent) {
    state.intents.splice(state.intents.indexOf(intent), 1)
  },
  setIntent (state, intent) {
    state.intent = intent
  }
}

export default {state, getters, mutations, namespaced: true}
